<table style="width:100%;" cellspacing="0">
    <tr>
        <td>

        <table cellspacing="0" width="100%" class="forumline">
                <tr>
                	<td class="row-header" colspan="2">
                	   <span>
                	       {language text="approve_quiz"}
            	       </span>
        	       </td>
                </tr>
<tr>
	<td class="row1">


{if $aQuizzes} / {language text="viewing"} {$aPaging.fromRow} - {$aPaging.toRow} {language text="out_of"} {$aPaging.totalRows}{/if}
        <br />
        {include file="`$sRootPath`/_blocks/pager.html"}
        <br /><br />
        {messages block="QuizAdminList"}
        {foreach from=$aQuizzes item=aQuiz}
        <form method="post" action="{$sUrl}" style="margin:0px;">
        <input type="hidden" name="quizid" value="{$aQuiz.id}" />

            <div class="border13">
            <div style="padding:6px;"><b>{language text="id_368"}: {$aQuiz.id}</b>
            <div style="padding:6px;"><b>{language text="posted_by_604"}:</b> <a href="{url link='public.user' name=$aQuiz.user}" target="_blank"> {$aQuiz.user}</a> <br />
            <br />

            <b>{language text="quiz"}:</b> {$aQuiz.title|escape}
            <div style="padding:6px;"><a href="javascript:void(0);" onclick="javascript:document.getElementById('item_{$aQuiz.id}').style.display='';">{language text="view_q_and_a"}</a><br />
            <br />
            <div style="display:none;" id="item_{$aQuiz.id}">
                {foreach from=$aQuiz.questions item=aQuestion}
                <b>{$aQuestion.q1|escape}</b>
                <div style="padding-left:20px;">
                    <div style="font-size:8pt;">{$aQuestion.a1|escape} (<i>{language text="correct_answer_1157"}</i>)</div>
                    {if $aQuestion.a2}<div style="font-size:8pt;">{$aQuestion.a2|escape}</div>{/if}
                    {if $aQuestion.a3}<div style="font-size:8pt;">{$aQuestion.a3|escape}</div>{/if}
                    {if $aQuestion.a4}<div style="font-size:8pt;">{$aQuestion.a4|escape}</div>{/if}
                    </div>
                <br />
                {/foreach}

                </div>
            </div>

            <br />
            <input type="submit" name="act[quiz_approve]" value=" {language text="approve"} " />
            <input type="submit" name="act[quiz_delete]" value=" {language text="delete"} " onclick="return sure();"/></div>
            </div>
            </div>
        </form>

        <br />
        {foreachelse}
            <div class="message_info">{language text="there_are_no_quizzes_yet"}</div>
        {/foreach}

        {include file="`$sRootPath`/_blocks/pager.html"}

        <br /><br />

        </td>
    </tr>
</table>

        </td>
    </tr>
</table>